package svc

import (
	"aliyun/aliyunrpc/aliyunrpcclient"
	"aliyun/api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config    config.Config
	Aliyunrpc aliyunrpcclient.Aliyunrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		Aliyunrpc: aliyunrpcclient.NewAliyunrpc(zrpc.MustNewClient(c.Aliyunrpc)),
	}
}
